﻿@using PortalCurriculo.MvcWebUI.Resources.Geral
@using PortalCurriculo.MvcWebUI.Resources.Curriculo
@model IEnumerable<PortalCurriculo.MvcWebUI.Models.CargoCurriculoModel>
<br />
<h4 style="padding-bottom:5px;">@Geral.CargosSelecionados</h4>
@if (Model == null || !Model.Any())
{
    <div>
        @Mensagens.NaoHaDados
    </div>
    return;
}
@foreach (var item in Model)
{
    <div id="@string.Concat("divEditCargoCurriculo", item.Id)" class="listaBotao">
        <div class="buttons" id="@string.Concat("divButtonsCargoCurriculo", item.Id)">
            @Ajax.ActionLink(Botoes.Excluir, "Excluir", new { id = item.Id }, new AjaxOptions { UpdateTargetId = "listaCargoCurriculo", HttpMethod = "Get", Confirm = "Tem certeza que deseja excluir?" },
                       new { @class = "deleteButton" })
            @Ajax.ActionLink(Botoes.Editar, "Registro", new { id = item.Id, idCurriculo = item.IdCurriculo }, new AjaxOptions { UpdateTargetId = "editFormCargoCurriculo", HttpMethod = "Get"},
                       new { @class = "editButton" })
        </div>
        <div class="alignLeft">
            @string.Concat(item.Cargo.Descricao, " - ", item.Cargo.EspecializacaoArea.Descricao)
        </div>
    </div>
}
